package com.jy.rhin.model.body.gaoxueysf;


import com.jy.rhin.infra.cda.EDataElement;
import com.jy.rhin.infra.cda.XPath;
import com.jy.rhin.infra.cda.XValid;
import com.jy.rhin.model.CodeObject;
import com.jy.rhin.model.ValueUnit;
import lombok.Data;

@Data
public class YongYaoItem {
    //用药途径
    @XPath(path = "/routeCode"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE06_00_134_00))
    CodeObject yongYaoTJ;
    //单次用药剂量
    @XPath(path = "/doseQuantity"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE08_50_023_00))
    ValueUnit danCiYYJL;
    //药物使用频率
    @XPath(path = "/rateQuantity"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE06_00_133_00))
    ValueUnit yaoWuSYPL;
    //药品名称
    @XPath(path = "/consumable/manufacturedProduct/manufacturedLabeledDrug/name/text()"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE08_50_022_00))
    String yaoPinMC;
    //服药依从性
    @XPath(path = "/entryRelationship/observation/code[@code='DE06.00.027.00']/../value"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE06_00_027_00))
    CodeObject fuYaoYCX;
    //用药副作用
    @XPath(path = "/entryRelationship/observation/code[@code='DE06.00.130.00']/../value/text()"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE06_00_130_00))
    String yongYaoFZY;
    //用药副作用标志
    @XPath(path = "/entryRelationship/observation/code[@code='DE06.00.130.00']/../precondition/criterion/value/@value"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE06_00_129_00))
    String yongYaoFZYBZ;
}
